Skip to content

Conversation

@oleksandr-nc
Copy link
Contributor

We add HP_TRUSTED_PROXY_IPS variable to specify IP/range of trusted Reverse Proxy which HaRP will trust and parse the real client addresses and ban by parsed values in that case.
This will alllow aboid situations when HaRP will ban Reverse Proxy IP address instead of the malicous client.

This PR does not affect FRP conenctions throught reverse proxy(?), as most configs I hope uses FRP without reverse proxy between - anyway we will leave that for the later investigation.

Other changes small change - log in record_ip_failure function to be with warning level instead of debug.

P.S: After merge of this we will publish a new version.

Signed-off-by: Oleksander Piskun <[email protected]>
Copy link
Contributor

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works more than perfectly 🚀

@oleksandr-nc oleksandr-nc merged commit 079eef3 into main Oct 17, 2025
3 checks passed
@oleksandr-nc oleksandr-nc deleted the fix/support-x-forward-real-ip branch October 17, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants